package com.github.permissiondog.cancanpbackend.request;

import com.github.permissiondog.cancanpbackend.model.Role;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class UserModifyRequest {
    @NotNull(message = "用户 ID 不能为空")
    public Integer userId;
    @Size(min = 2, max = 20, message = "昵称长度在2-20个字符之间")
    public String nickname;
    @Size(max = 20, message = "部门名字长度不能超过20个字符")
    public String department;
    @NotNull(message = "角色不能为空")
    public Role role;

    public String password;
}
